package com.zly.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Transient;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@Entity
@TableName(value = "user")
public class User {
    @Id
    private Long id;
    private String username;
    private String password;
    @TableField(exist = false)
    @Transient
    private List<String> permissionList = new ArrayList<>();
}
